package com.xzm.controller;

import com.xzm.bean.Address;
import com.xzm.bean.ServerResponse;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/test")
@ApiOperation("数据")
public class TestController {
    @ApiOperation("数据")
    @GetMapping("/list")
    public ServerResponse<Address> findUserListWithPage() {
        Address address = new Address(2L, "北京");
        return ServerResponse.createBySuccess(address);
    }

}
